package com.pocketpets.ui;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.ImageView;

import com.app.pocketpets.R;

public class StartingScreen extends Activity{
	ImageView mImage;
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.starting_screen);
		mImage=(ImageView) findViewById(R.id.image_theydream);
		Animation animation = AnimationUtils.loadAnimation(this, R.anim.anim_starting_screen);
		mImage.startAnimation(animation);
		animation.setAnimationListener(new Animation.AnimationListener() {
			public void onAnimationEnd(Animation animation) {
		
			Intent intent=new Intent(StartingScreen.this,StartingScreen2R.class);
			intent.setFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
			startActivity(intent);
			StartingScreen.this.finish();
			}

			public void onAnimationRepeat(Animation animation) {
				
			}

			public void onAnimationStart(Animation animation) {
				// TODO Auto-generated method stub
				
			}
	});
	}
	
	

}
